package cn.briarbear.myblog.entity.vo;

import cn.briarbear.myblog.entity.table.Blog;

import java.util.Date;

/**
 * 后台博客文章网格视图
 * 博客管理界面--该视图不包含文章内容
 */
public class BlogFormView {
    private Integer id;
    private String title;
    private Date createTime;
    private Date modifyTime;
    private String introduction;

    public BlogFormView(Blog blog) {
        this.id = blog.getId();
        this.title = blog.getTitle();
        this.createTime = blog.getCreateTime();
        this.modifyTime = blog.getModifyTime();
        this.introduction = blog.getIntroduction();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }
}
